package com.maochang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maochang.pojo.PsFunction;
import com.maochang.pojo.PsRolePremission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PsRolePremissionMapper extends BaseMapper<PsRolePremission> {

    @Select("select functionid from ps_role_premission where roleId=#{roleId}")
    List<Integer> findPermIdList(Integer roleId);
}
